/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"96858F82-3B3D-488E-A0BF-8D5E4CD95D15"}
 */
function nuevo(event) {
	databaseManager.setAutoSave(false)
	var $win = application.createWindow('ALTA_ENCARGADO',JSWindow.MODAL_DIALOG)
	forms.encargados_dtl.controller.newRecord()
	forms.encargados_dtl.controller.show($win)
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"D34635C7-FC4C-4D27-A1FE-368DFEC75B70"}
 */
function modificar(event) {
	databaseManager.setAutoSave(false)
	var $win = application.createWindow('ALTA_ENCARGADO',JSWindow.MODAL_DIALOG)
	forms.encargados_dtl.controller.show($win)
}
